home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / PushBP.h.z / PushBP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  3.6 KB  |  132 lines

  1. /*
  2.  * PushBP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: PushBP.h /main/cde1_maint/2 1995/08/18 19:16:41 drk $ */
  36. /*
  37. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  38. /*
  39. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  40. /*
  41. *  (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  42. /*
  43. *  (c) Copyright 1988 MICROSOFT CORPORATION */
  44. #ifndef _XmPButtonP_h
  45. #define _XmPButtonP_h
  46.  
  47. #include <Xm/PushB.h>
  48. #include <Xm/LabelP.h>
  49.  
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif
  53.  
  54. /* PushButton class structure */
  55.  
  56. typedef struct _XmPushButtonClassPart
  57. {
  58.    XtPointer extension;   /* Pointer to extension record */
  59. } XmPushButtonClassPart;
  60.  
  61.  
  62. /* Full class record declaration for PushButton class */
  63.  
  64. typedef struct _XmPushButtonClassRec {
  65.     CoreClassPart      core_class;
  66.     XmPrimitiveClassPart  primitive_class;
  67.     XmLabelClassPart      label_class;
  68.     XmPushButtonClassPart pushbutton_class;
  69. } XmPushButtonClassRec;
  70.  
  71.  
  72. externalref XmPushButtonClassRec xmPushButtonClassRec;
  73.  
  74. /* PushButton instance record */
  75.  
  76. typedef struct _XmPushButtonPart
  77. {
  78.    Boolean         fill_on_arm;
  79.    Dimension        show_as_default;
  80.    Pixel        arm_color;
  81.    Pixmap        arm_pixmap;
  82.    XtCallbackList   activate_callback;
  83.    XtCallbackList   arm_callback;
  84.    XtCallbackList   disarm_callback;
  85.  
  86.    Boolean         armed;
  87.    Pixmap        unarm_pixmap;
  88.    GC               fill_gc;
  89.    GC               background_gc;
  90.    XtIntervalId     timer;    
  91.    unsigned char    multiClick;        /* KEEP/DISCARD resource */
  92.    int            click_count;
  93.    Time            armTimeStamp;
  94.    Boolean      compatible;   /* if false it is Motif 1.1 else Motif 1.0  */
  95.    Dimension    default_button_shadow_thickness;  
  96.         /* New resource - always add it
  97.                     to widgets dimension. */
  98.  
  99. } XmPushButtonPart;
  100.  
  101.  
  102. /* Full instance record declaration */
  103.  
  104. typedef struct _XmPushButtonRec {
  105.     CorePart         core;
  106.     XmPrimitivePart  primitive;
  107.     XmLabelPart      label;
  108.     XmPushButtonPart pushbutton;
  109. } XmPushButtonRec;
  110.  
  111.  
  112. /********    Private Function Declarations    ********/
  113. #ifdef _NO_PROTO
  114.  
  115. extern void _XmClearBCompatibility() ;
  116.  
  117. #else
  118.  
  119. extern void _XmClearBCompatibility( 
  120.                         Widget pb) ;
  121.  
  122. #endif /* _NO_PROTO */
  123. /********    End Private Function Declarations    ********/
  124.  
  125.  
  126. #ifdef __cplusplus
  127. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  128. #endif
  129.  
  130. #endif /* _XmPButtonP_h */
  131. /* DON'T ADD ANYTHING AFTER THIS #endif */
  132.